/**
 * 
 */
package site.entity;

import java.util.Date;

/**
 * 
 * @author JinJing
 * 
 */
public class Weibo {
	private String imageURL;
	private String userName;
	private String message;
	private Date postTime;

	public String getMessageAbstract() {
		int length = 42;
		if (message == null || message.length() <= length) {
			return message;
		} else {
			return message.substring(0, length) + "...";
		}

	}

	public void setImageURL(String imageURL) {
		this.imageURL = imageURL;
	}

	public String getImageURL() {
		return imageURL;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public Date getPostTime() {
		return postTime;
	}
}
